Optimal. Leaf size=42 \[ -\frac {(c d-b e)^2 \log (b+c x)}{b c^2}+\frac {d^2 \log (x)}{b}+\frac {e^2 x}{c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.053, Rules used = {698} \[ -\frac {(c d-b e)^2 \log (b+c x)}{b c^2}+\frac {d^2 \log (x)}{b}+\frac {e^2 x}{c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 698
Rubi steps
\begin {align*} \int \frac {(d+e x)^2}{b x+c x^2} \, dx &=\int \left (\frac {e^2}{c}+\frac {d^2}{b x}-\frac {(-c d+b e)^2}{b c (b+c x)}\right ) \, dx\\ &=\frac {e^2 x}{c}+\frac {d^2 \log (x)}{b}-\frac {(c d-b e)^2 \log (b+c x)}{b c^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 42, normalized size = 1.00 \[ \frac {-(c d-b e)^2 \log (b+c x)+b c e^2 x+c^2 d^2 \log (x)}{b c^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.09, size = 53, normalized size = 1.26 \[ \frac {b c e^{2} x + c^{2} d^{2} \log \relax (x) - {\left (c^{2} d^{2} - 2 \, b c d e + b^{2} e^{2}\right )} \log \left (c x + b\right )}{b c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 54, normalized size = 1.29 \[ \frac {d^{2} \log \left ({\left | x \right |}\right )}{b} + \frac {x e^{2}}{c} - \frac {{\left (c^{2} d^{2} - 2 \, b c d e + b^{2} e^{2}\right )} \log \left ({\left | c x + b \right |}\right )}{b c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.12, size = 61, normalized size = 1.45 \[ -\frac {b \,e^{2} \ln \left (c x +b \right )}{c^{2}}+\frac {d^{2} \ln \relax (x )}{b}-\frac {d^{2} \ln \left (c x +b \right )}{b}+\frac {2 d e \ln \left (c x +b \right )}{c}+\frac {e^{2} x}{c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.34, size = 53, normalized size = 1.26 \[ \frac {e^{2} x}{c} + \frac {d^{2} \log \relax (x)}{b} - \frac {{\left (c^{2} d^{2} - 2 \, b c d e + b^{2} e^{2}\right )} \log \left (c x + b\right )}{b c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.15, size = 49, normalized size = 1.17 \[ \frac {e^2\,x}{c}-\ln \left (b+c\,x\right )\,\left (\frac {d^2}{b}+\frac {b\,e^2}{c^2}-\frac {2\,d\,e}{c}\right )+\frac {d^2\,\ln \relax (x)}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.87, size = 73, normalized size = 1.74 \[ \frac {e^{2} x}{c} + \frac {d^{2} \log {\relax (x )}}{b} - \frac {\left (b e - c d\right )^{2} \log {\left (x + \frac {b c d^{2} + \frac {b \left (b e - c d\right )^{2}}{c}}{b^{2} e^{2} - 2 b c d e + 2 c^{2} d^{2}} \right )}}{b c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________